<me:UITXTKON x:Class="WPFExcelReport.TPUTZBQTY"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
 xmlns:me="clr-namespace:WPFExcelReport" 
 xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
 xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
 xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
 x:Name="TV"
 Loaded="Window_Loaded"
 >
    <me:UITXTKON.Resources>
        <CollectionViewSource x:Key="vwMaster"/>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:Divideby100 x:Key="d100"/>
        <ucd:GB2312Convert8859P1 x:Key="gb2312"/>
    </me:UITXTKON.Resources>  
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition> 
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                </Grid.ColumnDefinitions>
        <TextBlock  Grid.Row="0" Grid.Column="0"  
                                       Text="{Binding QTY,Converter={StaticResource d100},ElementName=TV}"
                                       FontSize="16"
                                      Width="80"/>
        <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=边字A}}" HorizontalAlignment="Center"></TextBlock>
                <TextBlock Grid.Row="0" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=边字B}}" HorizontalAlignment="Center"></TextBlock>
                <TextBlock Grid.Row="0" Grid.Column="3" Text="{Binding Source={Localization:Translate Word=边字C}}" HorizontalAlignment="Center"></TextBlock>
                <TextBlock Grid.Row="0" Grid.Column="4" Text="{Binding Source={Localization:Translate Word=边字D}}" HorizontalAlignment="Center"></TextBlock>
                <StackPanel Grid.Row="1" Grid.RowSpan="20" Grid.Column="0">
                    <Button Click="EditCommand" Height="20" Margin="5,0,0,0" Width="24"   Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"  >
                        <Button.Background>
                            <ImageBrush ImageSource="/ImagePackage;component/Images/Edit.png" />
                        </Button.Background>
                    </Button>
                    <Button Click="SaveCommand" Height="20" Margin="5,0,0,0" Width="24"  Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}" >
                        <Button.Background>
                            <ImageBrush ImageSource="/ImagePackage;component/Images/button_ok.png" />
                        </Button.Background>
                    </Button>
                </StackPanel>

        <ex:TXT72 Grid.Row="1" Grid.Column="1"
                     Text="{Binding TA12,ElementName=TV}" MaxLength="126" MaxLines="1"
                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                     />
        <ex:TXT72 Grid.Row="1" Grid.Column="2"
                     Text="{Binding TA22,ElementName=TV}" MaxLength="126" MaxLines="1"
                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                     />
        <ex:TXT72 Grid.Row="1" Grid.Column="3"
                     Text="{Binding TA32,ElementName=TV}" MaxLength="126" MaxLines="1"
                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                     />
        <ex:TXT72 Grid.Row="1" Grid.Column="4"
                     Text="{Binding TA42,ElementName=TV}" MaxLength="126" MaxLines="1"
                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
                     />

    </Grid>
   
</me:UITXTKON>
